﻿<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人信息</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="../common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="../common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="../common/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="css/loginfo.css" media="all">
</head>
<body ms-controller="pageData" class="ms-controller">
<section class="layui-larry-box">
	<div class="larry-personal">
	    <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
		    	          <li class="layui-this"><i class="layui-icon">&#xe60a;</i>操作日志</li>
		    	          <li class=" "><i class="layui-icon">&#xe63c;</i>登录日志</li>
		            </ul>
            <div class="larry-separate"></div>
		    <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
		         <!-- 操作日志 -->
                <div class="layui-tab-item layui-field-box layui-show">
                     <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                          <thead>
                              <tr>
                                 
                                  <th>操作人</th>
                                  <th>操作时间</th>
                                
                                  <th>模块</th>
                               
                                  <th>操作IP</th>
                              </tr>
                          </thead>
                          <tbody>
                              <tr ms-for="($index,el) in @operateLog">
                                <td>{{el.account.name}}</td>
                                <td>
                                  {{el.createDate}}
                                </td>
                                <td >{{el.module.name}}</td>
                                <td >{{el.ip}}</td>
                              </tr>
                             
                          </tbody>
                     </table>
                     <div class="larry-table-page clearfix">
                        
				          <div id="page" class="page"></div>
			         </div>
			    </div>
			     <!-- 登录日志 -->
			    <div class="layui-tab-item layui-field-box">
			          <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                           <thead>
                              <tr>
                                
                                  <th>管理员账号</th>
                                  <th>状态</th>
                                  <th>最后登录时间</th>
                                  <th>上次登录IP</th>
                                  <th>登录IP</th>
                                  <th>IP所在位置</th>
                              </tr>
                            </thead>
                            <tbody>
                             <tr ms-for="($index,el) in @loginLog">
                              
                                <td>{{el.account.name}}</td>
                                <td>{{el.status}}</td>
                                <td>{{el.createDate}}</td>
                                <td>{{el.lastIP}}</td>
                                <td>{{el.ip}}</td>
                                <td> </td>
                              </tr>
                            </tbody>
			          </table>
			          <div class="larry-table-page clearfix">
                        
				          <div id="page2" class="page"></div>
			         </div>
			    </div>
		    </div>
		</div>
	</div>
</section>
<script type="text/javascript" src="../common/layui/layui.js"></script>
<script type="text/javascript" src="../common/avalon.js"></script>
<script type="text/javascript">

	layui.use(['jquery','layer','element','laypage'],function(){
	      window.jQuery = window.$ = layui.jquery;
	      window.layer = layui.layer;
          var element = layui.element(),
              laypage = layui.laypage;
          var vm = avalon.define({
                $id: "pageData",
               operateLog:[{id:'1',account:{id:'1',name:'李一'},module:{id:'12',name:'线下预定'},ip:'127.0.0.1',createDate:"2016-04-11 10:00:37"},
                          {id:'1',account:{id:'1',name:'李一'},module:{id:'12',name:'线下预定'},ip:'127.0.0.1',createDate:"2016-04-11 10:00:37"},
                        {id:'1',account:{id:'1',name:'李一'},module:{id:'12',name:'线下预定'},ip:'127.0.0.1',createDate:"2016-04-11 10:00:37"},
                         {id:'1',account:{id:'1',name:'李一'},module:{id:'12',name:'线下预定'},ip:'127.0.0.1',createDate:"2016-04-11 10:00:37"}],
                loginLog:[{id:'1',account:{id:'1',name:'场馆'},status:'登录成功',createDate:"2016-04-11 10:00:37",lastIP:"127.0.0.1",ip:"120.0.01"},
                          {id:'1',account:{id:'1',name:'场馆'},status:'登录成功',createDate:"2016-04-11 10:00:37",lastIP:"127.0.0.1",ip:"120.0.01"},
                          {id:'1',account:{id:'1',name:'场馆'},status:'登录成功',createDate:"2016-04-11 10:00:37",lastIP:"127.0.0.1",ip:"120.0.01"},
                          {id:'1',account:{id:'1',name:'场馆'},status:'登录成功',createDate:"2016-04-11 10:00:37",lastIP:"127.0.0.1",ip:"120.0.01"}]
               
       })
       avalon.scan(document.body);
          laypage({
					cont: 'page',
					pages: 10 //总页数
						,
					groups: 5 //连续显示分页数
						,
					jump: function(obj, first) {
						//得到了当前页，用于向服务端请求对应数据
						var curr = obj.curr;
						if(!first) {
							//layer.msg('第 '+ obj.curr +' 页');
						}
					}
				});

          laypage({
					cont: 'page2',
					pages: 10 //总页数
						,
					groups: 5 //连续显示分页数
						,
					jump: function(obj, first) {
						//得到了当前页，用于向服务端请求对应数据
						var curr = obj.curr;
						if(!first) {
							//layer.msg('第 '+ obj.curr +' 页');
						}
					}
				});
    });
</script>
</body>
</html>